package com.wl.dzt.sys.core.dao.config;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

import javax.sql.DataSource;


/**
 * @author wl_code@163.com
 * @version 1.0
 * @date 2018/7/5/005
 * @description druid配置
 */
@Configuration("druidConfig")
public class DruidConfig {
    @Primary
    @Bean
    public DataSource duridDataSource() {
        return DruidDataSourceBuilder.create().build();
    }
}
